x=input()
for i in range(0,len(x)):
   if ((ord(x[i])+1==ord(x[i+1])) or (ord(x[i])+2==ord(x[i+1])) or (ord(x[i])+1==ord(x[i+2])) or (ord(x[i])+2==ord(x[i+2]))):
       print(True)
       break
   else:
       print(False)
       break
       

